package org.oschina.util;

import java.util.ArrayList;
import java.util.List;

public class ListUtil {

	/**
	 * 去重  需实现equals方法
	 * @param list
	 * @return
	 */
	public static List removeRepeat(List list)
	{
		List resultList=new ArrayList();
		if(list!=null && !list.isEmpty())
		{
			for(Object value:list)
			{
				if(!resultList.contains(value))
					resultList.add(value);
			}
		}
		return resultList;
	}
}